package shiqi;

/**
 * @program: helloWorldStarter
 * @description: 服务类
 * @author: shiqi
 * @create: 2022-04-09 18:56
 **/
public class PersonService {

    private PersonProperties properties;

    public PersonService() {
    }

    public PersonService(PersonProperties properties) {
        this.properties = properties;
    }

    public void sayHello(){
        System.out.println("大家好，我叫: " + properties.getName() + ", 今年" + properties.getAge() + "岁"
                + ", 性别: " + properties.getSex());
    }
}


